package com.cloudbroker.bcs.platform.ltb.middle.service.impl;

import com.cloudbroker.bcs.common.dao.base.DAOBase;
import com.cloudbroker.bcs.platform.ltb.middle.dao.UpvoteRecordDAO;
import com.cloudbroker.bcs.platform.ltb.middle.entity.UpvoteRecord;
import com.cloudbroker.bcs.platform.ltb.middle.service.UpvoteRecordService;
import com.cloudbroker.bcs.platform.ltb.middle.service.base.TenantServiceImplBase;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by zhaosh19213 on 2016/8/16.
 */
@Service
public class UpvoteRecordServiceImpl extends TenantServiceImplBase<UpvoteRecord,String>
    implements UpvoteRecordService {

    @Resource
    private UpvoteRecordDAO upvoteRecordDAO;

    @Override
    protected DAOBase<UpvoteRecord, String> getDAO() {
        return upvoteRecordDAO;
    }

    @Override
    public int cancelUpvote(UpvoteRecord upvoteRecord){
        return upvoteRecordDAO.cancelUpvote(upvoteRecord);
    }

}
